python how to remove last letter from string

20

#Removing last three characters
foo = foo[:-3]

Comments

Submit
0 Comments